n = int(input())
a = 1
while a<=n:
    if n%a==0:
        print(a)
    a+=1